package com.richard.base.starter

import com.richard.base.route.KsRouterHelper
import com.wxy.appstartfaster.executor.TaskExceutorManager
import com.wxy.appstartfaster.task.AppStartTask
import java.util.concurrent.Executor

/**
 ***************************************
 * 项目名称:Giggle
 * @Author wuzhiguo
 * 邮箱：wuzhiguo@ksjgs.com
 * 创建时间: 2020/6/1     2:59 PM
 * 用途: 初始化课程模块 task
 ***************************************

 */

class InitMineModuleTask : AppStartTask() {
    override fun run() {
        KsRouterHelper.mineProvider()
    }

    override fun runOnExecutor(): Executor {
        return TaskExceutorManager.getInstance().cpuThreadPoolExecutor
    }

    override fun isRunOnMainThread(): Boolean = false

    override fun getDependsTaskList(): MutableList<Class<out AppStartTask>> {
        return mutableListOf(InitArouterTask::class.java)
    }

}